function test(a = b, b) {
  // 报错 暂时性死区
    console.log(a, b);
}

test(undefined, 2);


// 不报错
function test22(a, b = a) {
  console.log(a, b);
}

test22(2, undefined);
